/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_provinciaCriteria extends AbstractORMCriteria {
	public final IntegerExpression pr_id_provincia;
	public final StringExpression pr_provincia;
	
	public Tbv_provinciaCriteria(Criteria criteria) {
		super(criteria);
		pr_id_provincia = new IntegerExpression("pr_id_provincia", this);
		pr_provincia = new StringExpression("pr_provincia", this);
	}
	
	public Tbv_provinciaCriteria(PersistentSession session) {
		this(session.createCriteria(Tbv_provincia.class));
	}
	
	public Tbv_provinciaCriteria() throws PersistentException {
		this(orm.Bdvendomaticav04PersistentManager.instance().getSession());
	}
	
	public Tbv_regionCriteria createTbv_regionre_id_regionCriteria() {
		return new Tbv_regionCriteria(createCriteria("tbv_regionre_id_region"));
	}
	
	public Tbv_comunaCriteria createTbv_comunaCriteria() {
		return new Tbv_comunaCriteria(createCriteria("ORM_Tbv_comuna"));
	}
	
	public Tbv_provincia uniqueTbv_provincia() {
		return (Tbv_provincia) super.uniqueResult();
	}
	
	public Tbv_provincia[] listTbv_provincia() {
		java.util.List list = super.list();
		return (Tbv_provincia[]) list.toArray(new Tbv_provincia[list.size()]);
	}
}

